import request from '@/router/axios'

export function manufacturerFetchList(query) {
  return request({
    url: '/eims/manufacturer/page',
    method: 'get',
    params: query
  })
}

export function manufacturerAddObj(obj) {
  return request({
    url: '/eims/manufacturer',
    method: 'post',
    data: obj
  })
}

export function manufacturerGetObj(id) {
  return request({
    url: '/eims/manufacturer/' + id,
    method: 'get'
  })
}

export function manufacturerDelObj(id) {
  return request({
    url: '/eims/manufacturer/' + id,
    method: 'delete'
  })
}

export function manufacturerPutObj(obj) {
  return request({
    url: '/eims/manufacturer',
    method: 'put',
    data: obj
  })
}
